package com.ruoyi.interview.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 【请填写功能名称】对象 interv_talent
 * 
 * @author xuqinglong
 * @date 2022-11-10
 */
public class IntervTalent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人才id */
    private Long id;

    /** 姓名 */
    @NotNull(message = "姓名不能为空")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5.·\\u36c3\\u4DAE]{2,}$", message = "姓名格式不正确")
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String talentSex;

    /** 联系电话 */
    @Pattern(regexp = "^[\\d\\*]{7,12}$", message = "联系电话输入有误")
    @Excel(name = "联系电话")
    private String talentPhone;

    /** 个人情况 0代表未婚 1代表已婚 2表示单身 3代表未选择 */
    @Excel(name = "个人情况 0代表未婚 1代表已婚 2表示单身 3代表未选择")
    private Long talentCondition;

    /** 是否在公司在职 0代表不在职 1代表在职 2代表未选择 */
    @Excel(name = "是否在公司在职 0代表不在职 1代表在职 2代表未选择")
    private Long talentIncumbency;

    /** 简历文件名称 */
    @Excel(name = "简历文件名称")
    private String fileName;

    /** 简历文件路径 */
    @Excel(name = "简历文件路径")
    private String filePath;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTalentSex(String talentSex) 
    {
        this.talentSex = talentSex;
    }

    public String getTalentSex() 
    {
        return talentSex;
    }
    public void setTalentPhone(String talentPhone) 
    {
        this.talentPhone = talentPhone;
    }

    public String getTalentPhone() 
    {
        return talentPhone;
    }
    public void setTalentCondition(Long talentCondition) 
    {
        this.talentCondition = talentCondition;
    }

    public Long getTalentCondition() 
    {
        return talentCondition;
    }
    public void setTalentIncumbency(Long talentIncumbency)
    {
        this.talentIncumbency = talentIncumbency;
    }

    public Long getTalentIncumbency()
    {
        return talentIncumbency;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("talentSex", getTalentSex())
            .append("talentPhone", getTalentPhone())
            .append("talentCondition", getTalentCondition())
            .append("talentIncumbency", getTalentIncumbency())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .toString();
    }
}
